package com.asnike.component{
	import flash.display.MovieClip;
	import flash.events.MouseEvent;
	
	public class SimpleButton extends MovieClip{
		public function SimpleButton(){
			buttonMode = true;
			gotoAndStop( 1 );
			initEvent();
		}
		private function initEvent():void{
			addEventListener( MouseEvent.MOUSE_DOWN, down );
			addEventListener( MouseEvent.MOUSE_UP, up );
		}
		private function down( $e:MouseEvent ):void{
			gotoAndStop( 2 );
		}
		private function up( $e:MouseEvent ):void{
			gotoAndStop( 1 );
		}
	}
}